package com.rw.action.back;

import java.util.List;

import com.rw.service.OrderService;
import com.rw.table.Order;

public class GetOrderInfoAction {
	private Long orderid;
	private long uid;
	private Long orderId;
	private byte orderState;
	private byte orderPayState;
	private List<Order> orderList;
	private OrderService orderService;
	private Order order;
	public byte getOrderState() {
		return orderState;
	}
	public void setOrderState(byte orderState) {
		this.orderState = orderState;
	}
	public byte getOrderPayState() {
		return orderPayState;
	}
	public void setOrderPayState(byte orderPayState) {
		this.orderPayState = orderPayState;
	}
	public OrderService getOrderService() {
		return orderService;
	}
	public void setOrderService(OrderService orderService) {
		this.orderService = orderService;
	}
	

	
	public Long getOrderId() {
		return orderId;
	}
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}
	public List<Order> getOrderList() {
		return orderList;
	}
	public void setOrderList(List<Order> orderList) {
		this.orderList = orderList;
	}
	
	
	public Long getOrderid() {
		return orderid;
	}
	public void setOrderid(Long orderid) {
		this.orderid = orderid;
	}
	public long getUid() {
		return uid;
	}
	public void setUid(long uid) {
		this.uid = uid;
	}
	
	public Order getOrder() {
		return order;
	}
	public void setOrder(Order order) {
		this.order = order;
	}
	@SuppressWarnings("unchecked")
	public String execute(){
//		if(orderid==null){
//			order = orderService.get(orderId);
//		}else{
//			order = orderService.get(orderid);
//		}
		order = orderService.get(orderId);
//		order.setOrderPayState(orderPayState);
//		order.setOrderState(orderState);
//		orderService.update(order);
//		if(orderid==null)
//			this.setOrderId(null);
		//this.setOrderId(null);
		//if(this.uid!=0)
//		if(session.get("orderlist")!=null){
//			orderList=(List<Order>)session.get("orderlist");
//			this.bit=true;
//			session.remove("orderlist");
//		}
		return "success";
	}
}
